home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / BPC-TRTL.ZIP / TINY-RTL.DOX < prev   
Text File  |  1995-05-30  |  2KB  |  53 lines

  1.  
  2.    TinyRTL V1.0 for TP 7.0
  3.   ─────────────────────────
  4.  
  5.  What is TinyRTL
  6. ─────────────────
  7. TinyRTL is a System unit replacement. It allows you to create tiny EXE files
  8. when using Turbo Pascal. The overhead is only 96 bytes.
  9.  
  10. The Pascal programs using TinyRTL look a little bit like Assembler ones.
  11. So, you have to know ASM in order to use TinyRTL. However, you still can
  12. use all the Pascal structures, such as loops, high-level procedures, and
  13. even objects (probably future versions will have a better support for them).
  14.  
  15.  How to install
  16. ────────────────
  17. Simply compile SYSTEM.PAS with TP 7.0 to make SYSTEM.TPU. If you're using
  18. a different version of TP, use SYSTEM.TPS from its RTL, not the one
  19. included here. After you got SYSTEM.TPU, copy it to the directory with
  20. the program you want to compile and either turn off the Options│Environment│
  21. Startup...│Load TURBO.TPL option, or create a copy of TURBO.TPL and modify
  22. it with TPUMOVER.
  23.  
  24.  Restrictions
  25. ──────────────
  26. When using TinyRTL in your programs you can't use all the features that
  27. the standard RTL has. Here's a list of removed features:
  28.  
  29. - All System unit procedures, such as WriteLn
  30. - All runtime error checks (you have to use {$R-,S-,Q-,I-} mode)
  31. - Return codes (ignore the runtime error messages that IDE shows)
  32. - Floating-point data types (you have to use {$N-,E-} mode)
  33. - Heap manager (allocate memory using DOS calls)
  34. - String handling routines (including the + operation)
  35. + Some of the LongInt operations: *, /, shr, shl (they still work with Integer)
  36. + Large variable assignments (that involved a procedure call)
  37. + Virtual methods
  38.  
  39. The topics marked with '+' I'm going to implement in the future version of
  40. TinyRTL (I'll try to implement them w/o increasing the overhead size).
  41.  
  42. Also, note that you can't compile programs with debug information for
  43. standalone debugging. However, you can use the integrated debugger, or
  44. you can compile your program with the standard RTL for debugging (and
  45. use TinyRTL after the bugs are fixed).
  46.  
  47. Don't forget to save your program before you compile it! The compiler
  48. crashes with an internal error if you occasionally use some of the removed
  49. features.
  50.  
  51. ──────────────────────────────────────────
  52.  TinyRTL is coded by Solar Designer \ BPC
  53.